@extends('layouts.app')

@section('title', config('index_title').'-'.translate('个人中心'))
@section('footer')
     @include('common.footer')
@stop
@section('content')
<link rel="stylesheet" href="/fontpage/css/cart_check.css">

<div class="container" id="container">
    <div class="wrapper">
        <div id="minHeight">
            <style>
                .step6 .s-item .user-vip .vip-speed div.right {
                    -moz-border-radius-topright: 10px;
                    -moz-border-radius-bottomright: 10px;
                    -webkit-border-bottom-right-radius: 10px;
                    -webkit-border-top-right-radius: 10px;
                    border-bottom-right-radius: 10px;
                    border-top-right-radius: 10px;
                }
            </style>
            <div class="container" id="container">
                <div class="wrapper">
                    <div id="minHeight">
                        @include('common.header', ['title'=> translate('我的')])
                        <div class="common-wrapper">
                            <!-- 头部 -->
                            <div class="step6 border-1px step3-more">
                                <a href="{{JpUrl('/user/toInfo')}}" class="gxqm">
                                    <div class="s-item">
                                        <div class="sitem-t">
                                            <div class="user-header">
                                                <img src="{{ empty(Auth::user()->avatar)?'/fontpage/img/yonghutouxiang.png':url('upload/'.Auth::user()->avatar)}}" height="50" width="50" style="margin: 3px 0 0 5px;">
                                            </div>
                                            <div class="user-list">
                                                <p>{{ empty(Auth::user()->name)?Auth::user()->mobile:Auth::user()->name }}</p>

                                            </div>
                                            <!--<div class="user-vip">
                                                <div class="vip-speed">
                                                    <div style="width:7%; margin-top:-1px;">
                                                        <span style="width: 100px;display: block;font-size:7px;">VIP1:0%</span>
                                                    </div>
                                                </div>
                                            </div>-->

                                            <span class="s-point"></span>

                                        </div>
                                    </div>
                                </a>
                                <div class="sitem-b">
                                    <ul>
                                        <li>
                                            <a href="{{JpUrl('/user/toMyOrder')}}">
                                                <p class="txt_figure">

                                                        {{$dnum}}


                                                </p>
                                                <p class="txt_explain">
                                                    {{translate('待付款')}}
                                                </p>
                                            </a>
                                            <div class="ybk"></div>
                                        </li>

                                        <li>
                                            <a href="{{JpUrl('/user/toMyOrder')}}">
                                                <p class="txt_figure">

                                                        {{$snum}}


                                                </p>
                                                <p class="txt_explain">
                                                   {{translate('待审核')}}
                                                </p>
                                            </a>
                                            <div class="ybk"></div>
                                        </li>
                                        <li>
                                            <a href="{{JpUrl('/user/toMyOrder')}}">
                                                <p class="txt_figure">

                                                        {{$knum}}


                                                </p>
                                                <p class="txt_explain">
                                                    {{translate('待收货')}}
                                                </p>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <!-- END 头部 -->
                            <!-- 我的订单 -->
                            <div class="step7 border-1px">
                                <a href="{{JpUrl('/user/toMyOrder')}}" class="s-href">
                                    <div class="s-item bdb-1px">
                                        <div class="sitem-l">
                                            <i class="sitem-icon">
                                                <img src="/fontpage/img/cell_order.png" width="44" height="44">
                                            </i>
                                            <span>{{translate('我的订单')}}</span>
                                        </div>
                                        <div class="sitem-r">
                                            {{translate('查看全部订单')}}
                                        </div>
                                        <span class="s-point" style="top: 25%;"></span>
                                    </div>
                                </a>
                            </div>
                            <div class="step7 border-1px">
                                <a href="{{JpUrl('/user/toInfo')}}" class="s-href">
                                    <div class="s-item bdb-1px">
                                        <div class="sitem-l">
                                            <i class="sitem-icon">
                                                <img src="/fontpage/img/cell_set.png" width="44" height="44">
                                            </i>
                                            <span>{{translate('个人资料')}}</span>
                                        </div>
                                        <div class="sitem-r">
                                            {{translate('个人资料修改')}}
                                        </div>
                                        <span class="s-point" style="top: 25%;"></span>
                                    </div>
                                </a>
                            </div>
                            <div class="step7 border-1px">
                                <a href="{{JpUrl('/user/toAddress')}}" class="s-href">
                                    <div class="s-item bdb-1px">
                                        <div class="sitem-l">
                                            <i class="sitem-icon">
                                                <img src="/fontpage/img/cell_adress.png" width="44" height="44">
                                            </i>
                                            <span>{{translate('收货地址')}}</span>
                                        </div>
                                        <div class="sitem-r">
                                            {{translate('收货地址管理')}}
                                        </div>
                                        <span class="s-point" style="top: 25%;"></span>
                                    </div>
                                </a>
                            </div>
                            <div class="step7 border-1px">
                                <a class="s-href" href="{{JpUrl('/user/toAlterPass')}}">
                                    <div class="s-item bdb-1px">
                                        <div class="sitem-l">
                                            <i class="sitem-icon">
                                                <img src="/fontpage/img/xougaimima.png" width="30px" height="30px" style="margin: 7px;">
                                            </i>
                                            <span>{{translate('修改密码')}}</span>
                                        </div>
                                        <div class="sitem-r">
                                            {{translate('修改账号密码')}}
                                        </div>
                                        <span class="s-point" style="top: 25%;"></span>
                                    </div>
                                </a>
                            </div>
                            <div class="step7 border-1px">
                                <a class="s-href" href="{{JpUrl('/page?id=6')}}">
                                    <div class="s-item bdb-1px">
                                        <div class="sitem-l">
                                            <i class="sitem-icon">
                                                <img src="/fontpage/img/cell_service.png" width="44px" height="44px">
                                            </i>
                                            <span>{{translate('关于我们')}}</span>
                                        </div>
                                        <div class="sitem-r">
                                            {{translate('关于桔子屋')}}
                                        </div>
                                        <span class="s-point" style="top: 25%;"></span>
                                    </div>
                                </a>
                            </div>
                            <div class="step7 border-1px">
                                <a href="javascript:;" onclick="$('#logout-form').submit()" class="s-href">
                                <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                                            {{ csrf_field() }}
                                        </form>
                                    <div class="s-item bdb-1px">
                                        <div class="sitem-l">
                                            <i class="sitem-icon">
                                                <img src="/fontpage/img/cell_info.png" width="44px" height="44px">
                                            </i>
                                            <span>{{translate('退出账号')}}</span>
                                        </div>
                                        <div class="sitem-r">
                                            {{translate('退出切换账号')}}
                                        </div>
                                        <span class="s-point" style="top: 25%;"></span>
                                    </div>
                                </a>
                            </div>
                            <div style="width: 100%;height: 40px;margin-top:20px;"></div>

                        </div>
                    </div>
                </div>
            </div>

            <script>
                $(function () {
                    if (true) {
                        $("#f5").html('<img src="/fontpage/images/user1.png">');
                        $("#t5").css("color", "#ee4b02");
                    }

                    //sgListInit();//水果类加载
                });
                $(function () {
                    var num = 0;
                    try {
                        var city = JSON.parse(localStorage.getItem("good_info0"))
                        var now_city = '苏州市';
                        if (city['city'] != now_city) {/*当前城市 不等于所存储的城市信息.清空localStorage*/
                            localStorage.clear();
                        }

                        if (localStorage.num == undefined) {
                            num = 0;
                        }
                        else {
                            num = parseInt(localStorage.num);
                            num = parseInt(num) + parseInt(1);
                        }
                        $("#local_num").html(num);

                    }
                    catch (e) {
                        $("#local_num").html('');
                        //alert("您处于无痕浏览，无法为您保存浏览记录");
                    }

                });
            </script>

        </div>
    </div>
</div>




@endsection
